package com.liusp.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.liusp.constant.MessageConstant;
import com.liusp.entity.Result;
import com.liusp.service.ReportService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/report")
public class ReportController {
    @Reference
    private ReportService reportService;

    @RequestMapping("/getMemberReport.do")
    public Result getMemberReport(){
        return new Result(true, "查询会员数量成功",reportService.getMemberReport());
    }

    @RequestMapping("/getSetmealReport.do")
    public Result getSetmealReport(){
        return new Result(true,"查询套餐数量成功",reportService.getSetmealReport());
    }

    @RequestMapping("/getBusinessReportData.do")
    public Result getBusinessReportData(){
        return new Result(true,"成功",reportService.getBusinessReportData());
    }
}
